package com.wechat.page.contact;

import com.swak.fx.support.AbstractPage;
import com.swak.fx.support.FXMLView;

import javafx.fxml.FXML;
import javafx.scene.Parent;
import javafx.scene.layout.StackPane;

/**
 * ContactPage.
 * 
 * @author 618lf
 */
@FXMLView(title = "通讯录", value = "ContactPage.fxml", css = "ContactPage.css")
public class ContactPage extends AbstractPage {

	@FXML
	private StackPane listPane;
	@FXML
	private StackPane contactPane;

	private ContactListPage listPage;
	private ContactContentPage contentPage;

	public ContactPage() {
		this.listPage = this.NewPage(ContactListPage.class);
		this.contentPage = this.NewPage(ContactContentPage.class);
	}

	@Override
	public void initializeParts() {
		super.initializeParts();
		this.initContactListPage();
		this.initContactContentPage();
	}

	private void initContactListPage() {
		Parent node = this.listPage.getRoot();
		this.listPane.getChildren().add(node);
	}

	private void initContactContentPage() {
		Parent node = this.contentPage.getRoot();
		this.contactPane.getChildren().add(node);
	}

	@Override
	public void setupEventHandlers() {
		super.setupEventHandlers();
	}

	@Override
	public void setupBindings() {
		super.setupBindings();
	}

	@Override
	public void setupValueChangedListeners() {
		super.setupValueChangedListeners();
	}
}